package com.xiaoma.pattern.proxy.jdk;

/**
 * @author maj
 * @ClassName Hello
 * @Description
 * @date 2020-09-27 22:36
 */
public class Hello  implements IHello{

  @Override
  public void sayHello() {
    pre();
    System.out.println( "Hello,world!" );
    post();
  }

  @Override
  public void pre() {
    System.out.println("pre");
  }

  @Override
  public void post() {

    System.out.println("post");
  }
}
